package com.esoon.entity;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * CSR_AGENT
 * @author 
 */
@Data
public class CsrAgent implements Serializable {
    /**
     * PK
     */
    private Integer atId;

    /**
     * 坐席编号
     */
    private String atCode;

    /**
     * 坐席名称
     */
    private String atName;

    /**
     * 关联用户信息: COS_USER.UR_ID
     */
    private Integer atBindUser;

    /**
     * 坐席组
     */
    private String atGroup;

    /**
     * 技能组
     */
    private String atSkill;

    /**
     * 关联分机: CSR_SWITCH_DN.SD_ID
     */
    private Integer atDn;

    /**
     * 冗余值
     */
    private String atPar;

    private Integer createId;

    /**
     * 创建人
     */
    private String creater;

    /**
     * 部门编号
     */
    private Integer createDeptId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新人
     */
    private Integer updateId;

    /**
     * 更新人
     */
    private String updater;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 租户编号
     */
    private Integer tenantId;

    /**
     * 租户名称
     */
    private String tenantName;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CsrAgent other = (CsrAgent) that;
        return (this.getAtId() == null ? other.getAtId() == null : this.getAtId().equals(other.getAtId()))
            && (this.getAtCode() == null ? other.getAtCode() == null : this.getAtCode().equals(other.getAtCode()))
            && (this.getAtName() == null ? other.getAtName() == null : this.getAtName().equals(other.getAtName()))
            && (this.getAtBindUser() == null ? other.getAtBindUser() == null : this.getAtBindUser().equals(other.getAtBindUser()))
            && (this.getAtGroup() == null ? other.getAtGroup() == null : this.getAtGroup().equals(other.getAtGroup()))
            && (this.getAtSkill() == null ? other.getAtSkill() == null : this.getAtSkill().equals(other.getAtSkill()))
            && (this.getAtDn() == null ? other.getAtDn() == null : this.getAtDn().equals(other.getAtDn()))
            && (this.getAtPar() == null ? other.getAtPar() == null : this.getAtPar().equals(other.getAtPar()))
            && (this.getCreateId() == null ? other.getCreateId() == null : this.getCreateId().equals(other.getCreateId()))
            && (this.getCreater() == null ? other.getCreater() == null : this.getCreater().equals(other.getCreater()))
            && (this.getCreateDeptId() == null ? other.getCreateDeptId() == null : this.getCreateDeptId().equals(other.getCreateDeptId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateId() == null ? other.getUpdateId() == null : this.getUpdateId().equals(other.getUpdateId()))
            && (this.getUpdater() == null ? other.getUpdater() == null : this.getUpdater().equals(other.getUpdater()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getTenantId() == null ? other.getTenantId() == null : this.getTenantId().equals(other.getTenantId()))
            && (this.getTenantName() == null ? other.getTenantName() == null : this.getTenantName().equals(other.getTenantName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAtId() == null) ? 0 : getAtId().hashCode());
        result = prime * result + ((getAtCode() == null) ? 0 : getAtCode().hashCode());
        result = prime * result + ((getAtName() == null) ? 0 : getAtName().hashCode());
        result = prime * result + ((getAtBindUser() == null) ? 0 : getAtBindUser().hashCode());
        result = prime * result + ((getAtGroup() == null) ? 0 : getAtGroup().hashCode());
        result = prime * result + ((getAtSkill() == null) ? 0 : getAtSkill().hashCode());
        result = prime * result + ((getAtDn() == null) ? 0 : getAtDn().hashCode());
        result = prime * result + ((getAtPar() == null) ? 0 : getAtPar().hashCode());
        result = prime * result + ((getCreateId() == null) ? 0 : getCreateId().hashCode());
        result = prime * result + ((getCreater() == null) ? 0 : getCreater().hashCode());
        result = prime * result + ((getCreateDeptId() == null) ? 0 : getCreateDeptId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateId() == null) ? 0 : getUpdateId().hashCode());
        result = prime * result + ((getUpdater() == null) ? 0 : getUpdater().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getTenantId() == null) ? 0 : getTenantId().hashCode());
        result = prime * result + ((getTenantName() == null) ? 0 : getTenantName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", atId=").append(atId);
        sb.append(", atCode=").append(atCode);
        sb.append(", atName=").append(atName);
        sb.append(", atBindUser=").append(atBindUser);
        sb.append(", atGroup=").append(atGroup);
        sb.append(", atSkill=").append(atSkill);
        sb.append(", atDn=").append(atDn);
        sb.append(", atPar=").append(atPar);
        sb.append(", createId=").append(createId);
        sb.append(", creater=").append(creater);
        sb.append(", createDeptId=").append(createDeptId);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateId=").append(updateId);
        sb.append(", updater=").append(updater);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", tenantId=").append(tenantId);
        sb.append(", tenantName=").append(tenantName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}